replace string value (with javascript) : <@script method="invokeMethod_2" returnid="stringvalue1" /> ${stringvalue1} / replace string value (with groovy) : <@script type="groovy" method="invokeMethod_2" returnid="stringvalue2" /> ${stringvalue2}